﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace MvcDemo.Controllers
{
	[HandleError]
	public class HomeController : Controller
	{
		public ActionResult Index()
		{
			return View();
		}

		public ActionResult Submit(string Name, string List, string Check)
		{
			ViewData["TextBoxTest"] = "We read you, you entered: '" + Name + "'.";
			ViewData["ListBoxTest"] = "We read you, you selected: '" + List + "'.";
			ViewData["CheckBoxTest"] = "We read you, you " + (Check == "true" ? "checked" : "unchecked") + " it.";
			return View("Index");
		}
	}
}
